package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class TenderExInfo {

    public static String tenderExInfo= "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<tenderExInfo> \n" +
            "    <legalCode>{0}</legalCode>\n" +
            "    <customDefintionDataltem>{1}</customDefintionDataltem>\n" +
            "    <platFormCode>{2}</platFormCode>\n" +
            "    <pubServicePlatCode>{3}</pubServicePlatCode>\n" +
            "    <dataTimeStamp>{4}</dataTimeStamp>\n" +
            "</tenderExInfo>";

    public static void setTenderExInfo(String tenderExInfo,String s0,String s1,String s2,String s3,String s4) {
        TenderExInfo.tenderExInfo = MessageFormat.format(tenderExInfo,s0,s1,s2,s3,s4);
    }

    public static void setTenderExInfo(){
        setTenderExInfo(tenderExInfo, ParameterUtils.get("legalCode"),
                                    ParameterUtils.get("customDefintionDataltem"),
                                    ParameterUtils.get("platFormCode"),
                                    ParameterUtils.get("pubServicePlatCode"),
                                    ParameterUtils.get("dataTimeStamp")
                );
    }
    public static void main(String[] args) {
        setTenderExInfo();

        System.out.println(tenderExInfo);
    }
}
